package com.wuming.caiwu.util;


import javax.servlet.http.HttpServletRequest;

/**********************************************************
 * 验证码验证类
 * @author zhangyu
 * @date 2016-3-23
 * @time 下午1:31:41
 * @FileName CaptchaUtils.java
 * @version
 **********************************************************/
public class CaptchaUtils {

    public static boolean verify(HttpServletRequest request) {
        //从session中取出servlet生成的验证码text值
//        String expected = (String) request.getSession().getAttribute(Constants.KAPTCHA_SESSION_KEY);
//        //获取用户页面输入的验证码
//        String received = request.getParameter("imgCode");
//        return received != null && received.equalsIgnoreCase(expected);
        return false;
    }
}